package com.xwdeshj.repository;

import com.xwdeshj.entity.XwBusinessInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by BKWJA on 2018/12/22.
 * 商家信息、主管审核
 */
public interface XwBusinessInfoRepository extends JpaRepository<XwBusinessInfo,Integer> {

    //删除根据商家加密id，删除对应相关信息
    public void deleteByBusinessEncryptid(String business_encryptId);

    //根据商家加密id，获取对应相关信息
    public XwBusinessInfo findByBusinessEncryptid(String business_encryptId);

    //根据店铺加密id，获取对应相关信息
    public XwBusinessInfo findByFarmEncryptid(String farm_encryptId);

    //根据商家加密id,农家店铺加密id，获取对应相关信息
    public XwBusinessInfo findByBusinessEncryptidAndFarmEncryptid(String business_encryptId,String farm_encryptId);

    //根据商家加密id,景区店铺加密id，获取对应相关信息
    public XwBusinessInfo findByBusinessEncryptidAndSecEncryptid(String business_encryptId,String sec_encryptId);


}
